home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmInput
- BorderStyle = 3 'Fixed Dialog
- Caption = "Add A Link"
- ClientHeight = 1710
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 3915
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Icon = "frmInput.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1710
- ScaleWidth = 3915
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton cmdOK
- Caption = "&OK"
- Default = -1 'True
- Height = 375
- Left = 1440
- TabIndex = 5
- Top = 1200
- Width = 1095
- End
- Begin VB.CommandButton cmdCancel
- Caption = "&Cancel"
- Height = 375
- Left = 2760
- TabIndex = 4
- Top = 1200
- Width = 975
- End
- Begin VB.TextBox txtName
- Height = 285
- Left = 1200
- TabIndex = 3
- Top = 720
- Width = 2535
- End
- Begin VB.TextBox txtLink
- Height = 285
- Left = 1200
- TabIndex = 1
- Top = 240
- Width = 2535
- End
- Begin VB.Label lblURL
- AutoSize = -1 'True
- Caption = "URL:"
- Height = 195
- Left = 240
- TabIndex = 2
- Top = 240
- Width = 345
- End
- Begin VB.Label lblName
- AutoSize = -1 'True
- Caption = "Link Name:"
- Height = 195
- Left = 240
- TabIndex = 0
- Top = 720
- Width = 780
- End
- Attribute VB_Name = "frmInput"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '----------------------------------------
- '- Name: Sam Huggill
- '- Email: sam@vbsquare.com
- '- Web: http://www.vbsquare.com/
- '- Company: Lighthouse Internet Solutions
- '- Date/Time: 14/08/99 11:32:38
- '----------------------------------------
- '- Notes: Simple input dialog to replace
- ' the InputBox function
- '----------------------------------------
- Option Explicit
- Private Sub cmdCancel_Click()
- Unload Me
- End Sub
- Private Sub cmdOK_Click()
- If txtLink.Text = "" Then MsgBox "Please enter a link.", vbOKOnly + vbCritical: Exit Sub
- If txtName.Text = "" Then
- g_strName = txtLink.Text
- Else
- g_strName = txtName.Text
- End If
- g_strLink = txtLink.Text
- Unload Me
- End Sub
- Private Sub Form_Load()
- g_blnEnd = False
- txtName = g_strName
- txtLink = g_strLink
- CentreForm Me
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- If txtLink.Text = "" Then
- g_blnEnd = False
- Else
- g_blnEnd = True
- End If
- End Sub
-